sa0.localStorage = {};
sa0.localStorage.set = (key, val) => {
    localStorage.setItem(key, JSON.stringify(val));
};

sa0.localStorage.get = (key) => {
    let val = localStorage.getItem(key);
    return (val !== 'undefined' && val)
        ? JSON.parse(localStorage.getItem(key))
        : false;
};
sa0.localStorage.del = (key) => {
    let val = localStorage.getItem(key);
    if (val !== 'undefined' && val) localStorage.removeItem(key);
};